package com.ioc.demo.model;

import jakarta.annotation.PostConstruct;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * Description:读取yml格式配置文件的内容
 * User: 王圆豪
 * Date: 2025-07-05
 * Time: 10:59
 */

@Repository
@Data
@ConfigurationProperties("person")
public class Person {
    private Integer id;
    private String name;
    private Integer age;
}
